import { Entity, Column,OneToOne,JoinColumn, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn,Generated } from 'typeorm';
import {Girl} from './girl.entity';
@Entity()
export class GirlDetail {
    @PrimaryGeneratedColumn()
    id: number;

    @Column({type:"varchar",length:255})
    name: string;

    @Column({type:"int"})
    sex: string;

    @Column({type:"varchar"})
    birthday: string;

 

    // 设置实体的一对一关系
    // @OneToOne(()=>Girl)
    // @JoinColumn()
    // girl:Girl;
}